<?php
class Zend_View_Helper_Price {
	public function price($price) {
		$price = ( float ) $price;
		
		$res = ( string ) new Zend_Currency ( array ('locale' => 'en_US', 'format' => "#,##0.##0", 'value' => $price, 'display' => Zend_Currency::USE_SHORTNAME ) );
		
		list ( $int, $fract ) = explode ( '.', $res );
		return '<span class="price-wrapper">' . strtr ( $int, ',', ' ' ) . sprintf ( '<sup>%s</sup>', $fract ) . '</span>';
	}
}